import React, { Component } from 'react';
import { BrowserRouter } from 'react-router-dom'
import routes from './router/routerConfig';
import RouterView from './router/RouterView';
import store from './store'
import { Provider } from 'react-redux'
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
class App extends Component {
  render() {
    return (
      // 通过Provider的store属性将Redux的store数据传递给Provider，就可以在所有后代中直接使用Redux了
      <Provider store={store}>
        <BrowserRouter>
          <RouterView routes={routes} />
        </BrowserRouter>
      </Provider>
    );
  }
}

export default App;